<template>
  <div class="page" @click="clickActionL(title)">
    <img :src=" 'https://fuss10.elemecdn.com'+imgurl" alt="">
    <div class="name">{{title}}</div>
  </div>
</template>
<script>
  export default {
    name: "SwipetComponent",
    props: ['title', 'imgurl'],
    methods: {
      clickActionL(title) {
        let latitude = this.$router.history.current.query.latitude;
        let longitude = this.$router.history.current.query.longitude;
        // console.log(a,title)
        this.$router.push({ name: 'Shops', query: { latitude: latitude, longitude: longitude, title: title } });
      }
    },

  }
</script>
<style lang="less" scoped>
  .page {
    width: 25%;
    height: 110px;
    display: inline-block;
    text-align: center;
    background-color: white;
  }

  .page img {
    width: 40px;
    height: 40px;
    margin: 10px 10px;
  }

  .name {
    width: 100%;
    height: 20px;
    line-height: 20px;
    font-size: 14px;
    color: gray;
  }
</style>